package cn.wzvtc.ch9jpa.repository;

import cn.wzvtc.ch9jpa.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User, Long> {

  User findByUserNameAndPassword(String userName, String password);

}
